/*
 * intsum.c
 */
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char * * argv)
{
  int val;
  int sum = 0;
  printf("Please enter integers: ");
  while (scanf("%d", & val) == 1)
    {
      sum += val;
    }
  printf("sum = %d\n", sum);
  return EXIT_SUCCESS;
}
